home *** CD-ROM | disk | FTP | other *** search
/ Journey to the Planets (Wayzata) / Journey to the Planets (Wayzata Technology) (1994).iso / pc / mercury / mercury.hc / stack_-1.xml < prev   
Extensible Markup Language  |  1994-12-16  |  5KB  |  29 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in.hc</name>
  5.     <id>-1</id>
  6.     <cardCount>10</cardCount>
  7.     <cardID>2905</cardID>
  8.     <listID>8059</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><false /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>640</width>
  14.         <height>480</height>
  15.     </cardSize>
  16.     <script>--------------------------------------------------------------------------------------------------------Multicom Publishing Inc.┬«----------------------------------------------------------------------------------------------------------------------------------System Handlers:-----------------------------on startUpgo to stack "HOME"send startUp to stack "HOME"end StartUpon openStackhide menuBarhide titleBarcolorizeHCinitGlobalsopenPictureresetSystemPaletteloadPalettemercurySndloadTxtend openStackon resetSystemPaletteset cursor to busypicture "SYSTEM_COLORS",resource,rect,false,8set the rect of window "SYSTEM_COLORS" to "639,479,640,480"show window "SYSTEM_COLORS" -- show is needed to reset palette!close window "SYSTEM_COLORS"noPaintWhiteif there is a window "black" then ┬¼close window "black"end resetSystemPaletteon closeStacknoPaintWhiteif there is a window "merMenu"then close window "merMenu"end closeStackon openPicture winName -- handle openPicture sent by Picture XCMDglobal gCurrWindowif winName <> "SYSTEM_COLORS" thenput winName into gCurrWindowend ifend openPictureon colorizeHCglobal gOKToColorizeif (gOKToColorize is empty) then pass colorizeHCend colorizeHCon initGlobalsglobal gGlobalsOKif gGlobalsOK is true then exit initGlobalsif LastHilites = "" then put "0,0,0,0,0,0,0" &return &"0"&return&"1" into LastHilitesput true into gGlobalsOKend initGlobals--------------------------Navigational Handlers---------------------------on loadPalettenoPaintWhitepalette "merMenu", "0,417"  --opens navigational paletteif there is a window "runMenu" then ┬¼close window "runMenu"end loadPaletteon prepWinpicture "black",resource,rect,false,8     --draws a black screen before showing thumbnailset rect of window "black" to "0,0,640,480"noPaintWhiteshow window "black"end prepWinon goNextlock Screengo nextunlock Screenend goNexton goPrevlock Screengo previousunlock Screenend goPrevon goBacklock Screengo to card "Main Menu"  --takes you to this stack main menuunlock Screenend goBackon goEventlock screengo to cd "MAIN MENU"unlock screenend goEventon goSolarlock screengo stack "HOME"unlock screenend goSolar-----------------------------Options Handlers------------------------------on loadTxtglobal marker, printFieldput "PLANETS:MERCURY:MERCURY.TXT" into markerput "MERCURY" into printFieldend loadTxt---------------------------Check Environment Handlers----------------------on cHCinstall-- Check for correct environmentset cursor to busy--if checkEnviron() is not "OK" thengo HomegetHomeInfoexit to HyperCardend ifset cursor to busy--repeat until the lockScreen is falseunlock screenend repeat--end cHCinstallfunction checkEnviron-- The heapspace requirements may vary depending on your stackput MaxDepth() into TheDepthif TheDepth < 4 then errBitDepthif (TheDepth = 1) ┬¼and (the heapSpace < 2600) then errMemory TheDepth,"1100K"else if (TheDepth = 2) ┬¼and (the heapSpace < 117200) then errMemory TheDepth,"1200K"else if (TheDepth = 4) ┬¼and (the heapSpace < 205000) then errMemory TheDepth,"1250K"else if (TheDepth = 8) ┬¼and (the heapSpace < 384000) then errMemory TheDepth,"1300K"else if (TheDepth = 16) ┬¼and (the heapSpace < 721000) then errMemory TheDepth,"2400K"else if (TheDepth ΓëÑ 24) ┬¼and (the heapSpace < 1421000) then errMemory TheDepth,"3000K"else if stackActivate() is not empty thenerrColorreturn "OK"else return "OK"end checkEnvironon mercurySndglobal switchif switch > 0  thenexit mercurySndend ifQTMovie OpenMovie,Plain,"PLANETS:AUDIO:MECURY211KHz Movie", "1005,1005",┬¼nocontroller,dontPaintWhite,closeOnFinishset the visible of window "MECURY211KHz Movie" to falseend mercurySnd</script>
  17.     <background id="2758" file="background_2758.xml" name="MARSMAIN.BKGRND" />
  18.     <card id="2905" file="card_2905.xml" marked="false" name="MAIN MENU" owner="2758" />
  19.     <card id="5930" file="card_5930.xml" marked="false" name="D1" owner="2758" />
  20.     <card id="4152" file="card_4152.xml" marked="false" name="D2" owner="2758" />
  21.     <card id="4420" file="card_4420.xml" marked="false" name="D3" owner="2758" />
  22.     <card id="4690" file="card_4690.xml" marked="false" name="D4" owner="2758" />
  23.     <card id="5319" file="card_5319.xml" marked="false" name="D5" owner="2758" />
  24.     <card id="5069" file="card_5069.xml" marked="false" name="D6" owner="2758" />
  25.     <card id="7647" file="card_7647.xml" marked="false" name="D7" owner="2758" />
  26.     <card id="7922" file="card_7922.xml" marked="false" name="D8" owner="2758" />
  27.     <card id="5477" file="card_5477.xml" marked="false" name="E1" owner="2758" />
  28. </stack>
  29.